package com.yunchang.springboot.mapper.logisticsReconciliation;

import com.yunchang.springboot.config.BaseDao;
import com.yunchang.springboot.models.DO.logisticsReconciliation.WlCreateAPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WlCreateAPlanMapper extends BaseDao<WlCreateAPlan> {

    WlCreateAPlan selectByShipmentId(@Param("shipmentId") String shipmentId);

    List<Integer> getSearchPredictArriveDaysList();

    List<String> getSearchShopNameList();

    List<String> getPositionsList();

    int deleteByShipmentId(String shipmentId);

    int updateByShipmentId(String shipmentId);

    WlCreateAPlan selectById(Integer id);

    int updateSelectiveById(WlCreateAPlan wlCreateAPlan);

    List<String> getSearchCountriesNameList(@Param("shopName") String shopName);

    int updateDeliveryStatusByShipmentId(String shipmentId);

    int updateBoxDeliveryStatusBoxRevocation(String shipmentId);

    int updateBoxDeliveryStatusBoxAffirm(String shipmentId);

    int updateBoxDeliveryStatusBoxAffirmRevocation(String shipmentId);

    int selectBasketNoIsUsed(String basketNo);

    /**
     * 根据shipmentId获得目的地店铺信息
     * */
    WlCreateAPlan getShopDataByShipmentId(@Param("shipmentId")String shipmentId);
}